#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int a,b,c;
	cin >> a >> b >> c;

	int i;
	for(i = 1;;i++)
	{
		if((a*i) % b == 0 && (a*i) % c == 0)
		break;
	} 
	int ret = a*i;
	cout << ret;
	
	return 0;
}
